package com.yuan.api;

import com.yuan.api.fallback.FallbackItt;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import static com.yuan.Constant.APPLICATION_NAME;


@FeignClient(serviceId = APPLICATION_NAME,fallback = FallbackItt.class)
public interface ITestService {

    @RequestMapping("test")
    String test(@RequestParam("name") String name);

}
